<?
error_reporting(0);
require("config.php");

function flashencode($str){
  $str=eregi_replace("&","%26",$str);
	/*
$str=urlEncode($str);  */

  return $str;
}


$table = "med_announcement";

$field = array(

"id",
"subject",
"details",
"picture",

);

$r = limitQuery($table,$field,$exp);

for($i=0;$i<count($r);$i++){
	
	$ids  = $ids . "~@:_" . $r[$i][0];
	$names  = $names . "~@:_" . $r[$i][1];
	$details  = $details . "~@:_" . $r[$i][2];
	$pictures  = $pictures . "~@:_" . $r[$i][3];

}

print("&ids="  . substr($ids,4));
print("&names="  . utf8_encode(substr($names,4)));
print("&details="  . utf8_encode(substr($details,4)));
print("&pictures="  . flashencode(substr($pictures,4)));
print("&pic_dir=../../pictures_da/" . $table . "/");
print("&readinfo=true");
?>